{% extends 'base.html' %}
{% load pp_url %}
{% load issuetags %}

{% block title %}Login Page{% endblock %}
{% block css %}
<link rel="stylesheet" type="text/css" href="/static/style.css" />
{% endblock %}

{% block content%}

<div class="stage">
		<div class="issuemask">
			<div class="rightcol">
				{% include "_rightcol.html" %}		
					
			</div> 
{% if request.object %}
{% pp_issue_form POST=request.POST path=request.path request=request issue=request.object %}
   <div id = "add">
   <h2>Edit Issue</h2>
   {{ pp_issue.form.errors }}
	<form method="post" action="">
		Name: <br>{{ pp_issue.form.name }}<br>
		Text: <br>{{ pp_issue.form.text }}
	  	{{ pp_issue.form.form_id}}
		{% csrf_token %}
    <input type="submit" class="button green" value="Submit Issue" />
	</form>
	</div>
{% endpp_issue_form %}
{% else %}
{% pp_issue_form POST=request.POST path=request.path request=request %}
   <div id = "add">
   <h2>Submit a New Issue</h2>
   {{ pp_issue.form.errors }}
	<form method="post" action="">
		Name: <br>{{ pp_issue.form.name }}<br>
		Text: <br>{{ pp_issue.form.text }}
	  	{{ pp_issue.form.form_id}}
		{% csrf_token %}
    <input type="submit" class="button green" value="Submit Issue" />
	</form>
	</div>
{% endpp_issue_form %}
{% endif %}

</div></div>


{% endblock content %}

